package com.huawei.push.util;

import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSession;

/**
 * 信任所有主机名的HostnameVerifier实现类
 */
public class TrustAllHostnameVerifier implements HostnameVerifier {
    
    public TrustAllHostnameVerifier(Object obj) {
        // 构造函数，参数可以忽略
    }
    
    @Override
    public boolean verify(String hostname, SSLSession session) {
        // 信任所有主机名
        return true;
    }
}